//
//  STTransitionAlphaViewController.m
//  STBest
//
//  Created by apple on 2017/8/29.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "STTransitionAlphaViewController.h"
#import "STAlphaAnimator.h"

@interface STTransitionAlphaViewController ()

@end

@implementation STTransitionAlphaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.modalPresentationStyle = UIModalPresentationCustom;
    self.transitioningDelegate = self.animator;
}

- (id<UIViewControllerTransitioningDelegate>)animator{
    if(_animator==nil){
        _animator = [STAlphaAnimator new];
    }
    return _animator;
}

@end
